package com.client.controller;

import com.client.bean.Instance;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description:
 *
 * @author weiruibai.vendor
 * Date: 2023/1/29 16:59
 */
@RestController
public class EurekaClientController {

    @Autowired
    private Instance instance;

    @GetMapping("/test")
    public Object test() {
        return "OK";
    }

    @GetMapping("/getInstance")
    public Instance getInstance() {
        return instance;
    }

    @GetMapping(value = "/sendHeartBeat")
    public boolean sendHeartBeat() {
        return true;
    }


}
